import { SearchProps } from "antd/es/input";
import { Input } from 'antd';
const { Search } = Input;
const onSearch: SearchProps['onSearch'] = (value, _e, info) => console.log(info?.source, value);

const SearchComponent = ()=>{

    return (
        <>
            <Search placeholder="input search text" onSearch={onSearch} style={{ width: 200 , padding: 10}} />
        </>
    )

}

export default SearchComponent